﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200114B RID: 4427
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetDisplayAvatarScRsp : IMessage<SetDisplayAvatarScRsp>, IMessage, IEquatable<SetDisplayAvatarScRsp>, IDeepCloneable<SetDisplayAvatarScRsp>, IBufferMessage
	{
		// Token: 0x17003809 RID: 14345
		// (get) Token: 0x0600C61C RID: 50716 RVA: 0x00216DC7 File Offset: 0x00214FC7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetDisplayAvatarScRsp> Parser
		{
			get
			{
				return SetDisplayAvatarScRsp._parser;
			}
		}

		// Token: 0x1700380A RID: 14346
		// (get) Token: 0x0600C61D RID: 50717 RVA: 0x00216DCE File Offset: 0x00214FCE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetDisplayAvatarScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700380B RID: 14347
		// (get) Token: 0x0600C61E RID: 50718 RVA: 0x00216DE0 File Offset: 0x00214FE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetDisplayAvatarScRsp.Descriptor;
			}
		}

		// Token: 0x0600C61F RID: 50719 RVA: 0x00216DE7 File Offset: 0x00214FE7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetDisplayAvatarScRsp()
		{
		}

		// Token: 0x0600C620 RID: 50720 RVA: 0x00216DFA File Offset: 0x00214FFA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetDisplayAvatarScRsp(SetDisplayAvatarScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.displayAvatarList_ = other.displayAvatarList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C621 RID: 50721 RVA: 0x00216E30 File Offset: 0x00215030
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetDisplayAvatarScRsp Clone()
		{
			return new SetDisplayAvatarScRsp(this);
		}

		// Token: 0x1700380C RID: 14348
		// (get) Token: 0x0600C622 RID: 50722 RVA: 0x00216E38 File Offset: 0x00215038
		// (set) Token: 0x0600C623 RID: 50723 RVA: 0x00216E40 File Offset: 0x00215040
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x1700380D RID: 14349
		// (get) Token: 0x0600C624 RID: 50724 RVA: 0x00216E49 File Offset: 0x00215049
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<DisplayAvatarData> DisplayAvatarList
		{
			get
			{
				return this.displayAvatarList_;
			}
		}

		// Token: 0x0600C625 RID: 50725 RVA: 0x00216E51 File Offset: 0x00215051
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetDisplayAvatarScRsp);
		}

		// Token: 0x0600C626 RID: 50726 RVA: 0x00216E60 File Offset: 0x00215060
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetDisplayAvatarScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.displayAvatarList_.Equals(other.displayAvatarList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C627 RID: 50727 RVA: 0x00216EB0 File Offset: 0x002150B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.displayAvatarList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C628 RID: 50728 RVA: 0x00216EFD File Offset: 0x002150FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C629 RID: 50729 RVA: 0x00216F05 File Offset: 0x00215105
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C62A RID: 50730 RVA: 0x00216F10 File Offset: 0x00215110
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Retcode);
			}
			this.displayAvatarList_.WriteTo(ref output, SetDisplayAvatarScRsp._repeated_displayAvatarList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C62B RID: 50731 RVA: 0x00216F60 File Offset: 0x00215160
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.displayAvatarList_.CalculateSize(SetDisplayAvatarScRsp._repeated_displayAvatarList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C62C RID: 50732 RVA: 0x00216FB4 File Offset: 0x002151B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetDisplayAvatarScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.displayAvatarList_.Add(other.displayAvatarList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C62D RID: 50733 RVA: 0x00217001 File Offset: 0x00215201
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C62E RID: 50734 RVA: 0x0021700C File Offset: 0x0021520C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 98U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.displayAvatarList_.AddEntriesFrom(ref input, SetDisplayAvatarScRsp._repeated_displayAvatarList_codec);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004FBB RID: 20411
		private static readonly MessageParser<SetDisplayAvatarScRsp> _parser = new MessageParser<SetDisplayAvatarScRsp>(() => new SetDisplayAvatarScRsp());

		// Token: 0x04004FBC RID: 20412
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004FBD RID: 20413
		public const int RetcodeFieldNumber = 3;

		// Token: 0x04004FBE RID: 20414
		private uint retcode_;

		// Token: 0x04004FBF RID: 20415
		public const int DisplayAvatarListFieldNumber = 12;

		// Token: 0x04004FC0 RID: 20416
		private static readonly FieldCodec<DisplayAvatarData> _repeated_displayAvatarList_codec = FieldCodec.ForMessage<DisplayAvatarData>(98U, DisplayAvatarData.Parser);

		// Token: 0x04004FC1 RID: 20417
		private readonly RepeatedField<DisplayAvatarData> displayAvatarList_ = new RepeatedField<DisplayAvatarData>();
	}
}
